<table width="100%">
<caption><h1>订单列表</h1></caption>
<thead>
<tr>
	<th width="5%">订单号</th>
	<th width="15%">收货人</th>
	<th width="10%">联系电话</th>
	<th width="15%">E-mail</th>
	<th width="50%">收货地址</th>
	<th width="5%">状态</th>
</tr>
</thead>
<tbody id="myTable">
<?php foreach($datas as $data) { ?>
<tr>
	<td><?=$data->id?></td>
	<td><?=$data->firstname.' '.$data->lastname?></td>
	<td><?=$data->telephone?></td>
	<td><?=$data->email?></td>
	<td><?=$data->shipping_address_1.' '.$data->shipping_address_2?></td>
	<td><?=count($order_status)==1 ? $order_status[$data->status] : form::dropdown('order_stauts', $order_status, $data->status, 'onchange="window.location=\'/order/change_status/'.$data->id.'/'.$old_order_status.'/\'+this.value"')?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?=$this->pagination->create_links()?>
<?=html::script('js/table.js')?>
